Method and apparatus for determining state of charge of a battery

ABSTRACT

A method and apparatus for determining the state of charge (SOC) of a battery is discussed. The method involves measuring the terminal voltage across the battery and the current flowing through the battery at a plurality of different times and fitting a line equation with a slope and an intercept to the terminal voltage and current data. The open-circuit voltage (OCV) is calculated from the intercept of the linear equation and the SOC is determined from the OCV by reference to a lookup table.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application claims benefit under 35 U.S.C. §119(e) of U.S. Provisional Application No. 61/104,583 filed on Oct. 10, 2008, entitled “Determination of State of Charge of a Battery,” the content of which is hereby incorporated by reference in its entirety.

BACKGROUND

1. Technical Field

This invention relates to battery systems, and more specifically, the determination of the charge status of a flow battery system.

2. Discussion of Related Art

The state of charge (SOC) of a battery at any stage (charging or discharging) is a highly desirable parameter. It provides, during a charging state, information on how long the battery will take to fully charge, and also provides an input to a sophisticated charging algorithm that allows better control of a charging sequence. During discharge, the SOC provides information regarding the remaining battery lifetime. In mission critical applications, the SOC information can be used to allocate the remaining charge between critical and non-critical loads.

Therefore, there is a need to accurately determine the SOC of a battery.

SUMMARY

A method and apparatus for determining the state of charge (SOC) of a battery is discussed. The method involves measuring the terminal voltage across the battery and the current flowing through the battery at a plurality of different times and fitting a line equation with a slope and an intercept to the terminal voltage and current data. The open circuit voltage (OCV) is calculated from the intercept of the linear equation and the SOC is determined form the OCV by reference to a lookup table.

These and other embodiments of the invention are further described below with respect to the following figures.

BRIEF DESCRIPTION OF THE DRAWINGS

In order to more fully understand the present invention, reference is made to the accompanying drawings, with the understanding that these drawings are not intended to limit the scope of the invention.

FIGS. 1 a-b illustrate methods of estimating the charge status of a battery.

FIGS. 2 a-c illustrate another method of estimating the charging status of a battery.

FIGS. 3 a-b illustrate another method of estimating the charging status of a battery.

FIG. 4 a illustrates a schematic diagram of a battery system during a discharging state consistent with some embodiments of the present invention.

FIG. 4 b illustrates a schematic diagram of a battery system during a charging state consistent with some embodiments of the present invention.

FIG. 4 c illustrates a voltage vs. current plot consistent with some embodiments of the present invention.

FIG. 4 d is a simplified flow chart depicting a method for determining the state of charge of a battery according to some embodiments of the present invention.

FIG. 4 e is a simplified flow chart depicting a method for determining the state of charge of a battery according to some embodiments of the present invention.

FIG. 5 illustrates a block diagram of an apparatus that estimates the state of charge of a battery consistent with some embodiments of the present invention.

In the figures, elements having the same designation have the same or similar functions. The figures are illustrative only and relative sizes and distances depicted in the figures are for convenience of illustration only and have no further meaning.

DETAILED DESCRIPTION OF THE INVENTION

In the following description, for the purposes of explanation, specific details are set forth in order to provide a thorough understanding of the embodiments of the invention. However, it will be apparent that the invention may be practiced without these specific details.

Embodiments of the present invention provide techniques for determining the state of charge of a battery. Some embodiments determine the state of charge based upon measured battery current and voltage values.

Determining the state of charge (SOC) of a battery in a battery system allows for better control of both charging of the battery and allocation of the battery charge to various loads that may be coupled to the battery. A battery includes any charge storage device, including flow batteries, static batteries, or other chemical, mechanical, or electrical charge storage device. Methods and techniques that are currently employed to determine the SOC of a battery include (1) Coulomb counting, (2) indirect open-circuit voltage (OCV) measurement, and (3) zero-load OCV measurement. Each of these methods has its own set of advantages and disadvantages.

FIG. 1 a illustrates a circuit diagram of a battery system 100 a during a charging state where the Coulomb counting method is employed to determine the SOC. Battery system 100 a includes battery 102 that is electrically coupled in series with a current integrator 104. A current integrator 104 performs a time integration of an electric current, measuring the total electric charge. In the charging state, as shown in FIG. 1 a, an external voltage supply 106 is electrically coupled across the serial combination of the battery 102 and current integrator 104. The external voltage supply can be any source of voltage, including photovoltaic panels, wind-driven generators, and other chemical or mechanical devices for generating an electric potential. While charging, current integrator 104 integrates the charging current (I_(chg)) 105 over time to determine the charge (Q_(chg)) 103 deposited into battery 102.

FIG. 1 b illustrates battery system 100 b during a discharging stage. As shown in FIG. 1 b, a load resistance 108 is electrically coupled across the serial combination of battery 102 and current integrator 104. A load resistance includes any electrical load (e.g., a resistor, a motor, or an electronic device). During the discharging stage, discharge current (I_(dis)) 109 flows from battery 102 through external load 108. Current integrator 104 continues to integrate the current, in this case discharge current (I_(dis)) 109, and thereby calculates the charge on battery 102 by subtracting the charge (Q_(dis)) leaving battery 102 from the charge placed on battery 102 during the charging state illustrated in FIG. 1 a. Because the charge is counted at all times (by integrating both during charging and discharging), the net charge (Q_(chg)−Q_(dis)) corresponds to the charge remaining on battery 102, which is the relevant SOC information. However, integrator 104 cannot take into account any Coulombic inefficiency resulting from a parasitic reaction, such as hydrogen (H) or oxygen (O) generation, or self discharge which may occur.

The problems typically associated with Coulomb counting include accumulation error and Coulombic inefficiency. Accumulation error is the measurement error that is summed over many cycles. As a result of the accumulation error, the net charge on battery 102 is reset periodically. This reset is typically accomplished either at a fully charged or a fully discharged state, although waiting for such an event to occur in practical applications is not desirable.

Coulombic inefficiency refers to the charge that is lost in the battery by parasitic reactions. Generally, there are many parasitic reactions that occur in the battery, including self-discharge and electrode memory, electrode degradation, and non-reduction-oxidation (non-redox) reactions. These parasitic reactions result in charge that is lost to the battery, but not included in the Coulomb counting technique. This lost charge results in an inaccurate measure of the SOC by the Coulomb counting technique. Additionally, Coulomb counting methods are dependent on the measurement bandwidth, and for fast, varying loads, the counting is usually not very accurate.

FIGS. 2 a-c illustrate a battery system 200 a and 200 b that employs the indirect OCV measurement method to determine the SOC. Battery system 200 a and 200 b includes a battery 202 where a terminal voltage (V_(cell)) 207 is measured across terminals 203 and 205 of battery 202. Battery 202 is internally modeled as an OCV supply 204 and an equivalent series resistance (ESR) 206 electrically coupled in series between terminals 203 and 205. During the charging process, for example in a battery system 200 a as shown in FIG. 2 a, a battery charger 210 is electrically coupled across terminals 203 and 205. A charging current (I_(chg)) 208 flows from charger 210 to battery 202. Applying Kirchhoff's Voltage Law results in the following equation for the OCV:

OCV=V _(cell) −I _(chg)*ESR   (1)

Because the terminal voltage (V_(cell)) 207 and charging current (I_(chg)) 208 can be measured and the ESR 206 of the battery is assumed to be a known constant parameter characteristic of the battery 202, the OCV supply 204 can be calculated during charging of battery 202.

FIG. 2 b illustrates a circuit diagram 200 b where battery 202 is discharging. During discharge, battery 202 is electrically coupled across an external load resistance (Load) 211. Again applying Kirchhoff's Voltage Law, the following equation for the open-circuit voltage is obtained.

OCV=V _(cell) +I _(dis)*ESR   (2)

Again, because the terminal voltage (V_(cell)) 207 and discharge current (I_(dis))) 209 can be measured and the parameter ESR 206 is assumed to be a known constant characteristic of battery 202, the OCV supply 204 can be calculated during discharge of battery 202.

FIG. 2 c illustrates a correlation plot 216 of OCV vs. SOC corresponding to battery 202 (not shown in figure). Although OCV and SOC plots can be theoretically calculated from known reduction-oxidation (redox) potentials with the help of the Nernst Equation, the solution pH and other kinetic factors modify the relationship considerably. Therefore, this plot is typically developed from laboratory measurements under controlled conditions typical of the battery chemistry. The OCV during the charging and discharging process can be computed from equations (1) and (2), respectively, and the corresponding SOC information can be determined from the correlation plot 216 corresponding to battery 202 that is shown in FIG. 2 c.

The indirect OCV measurement method assumes that the ESR of the battery is reasonably well known. However, the ESR of a battery changes over the life of the battery, and may also be a function of temperature and other ambient conditions in addition to the SOC. Therefore, the assumption that the indirectly measured OCV voltage depends solely on the SOC results in an inaccurate estimation of the true OCV and thus the SOC. For example, in a lead acid battery, the ESR changes as the plate thickness and electrolyte concentrations change during charge and discharge, in addition to depending on the SOC.

FIGS. 3 a and 3 b illustrate another method of determining the SOC of a battery system: zero-load OCV determination. FIG. 3 a illustrates a flow battery system 300 a. As shown in FIG. 3 a, battery system 300 a includes storage tanks 302 and 304 for storing anolyte 303 and catholyte 305, respectively, and a cell stack 306. Anolyte 303 and catholyte 305 are distributed through cell stack 306 by distribution systems 307 and 309, respectively. In some embodiments, distribution systems 307 and 309 can include pumps 310 and 312, respectively, which are used to distribute anolyte 303 and catholyte 305 through cell stack 306.

FIG. 3 b illustrates the flow battery system 300 b employing the zero-load OCV measurement method to determine the SOC. As shown in FIG. 3 b, an OCV cell 308 is electrically coupled in parallel to cell stack 306 by distribution systems 311 and 313, respectively. In some embodiments, pumps 310 and 312 may be used to distribute anolyte 303 and catholyte 305 through both cell stack 306 and OCV cell 308. Therefore, anolyte 303 and catholyte 305 flows through each of the cells in cell stack 306 and also OCV cell 308, in parallel. If it is assumed that the OCV of a flow cell depends only on the state of anolyte 303 and catholyte 305, then the OCV of each cell is identical. Therefore, the OCV for each of the cells in cell stack 306 can be determined by measuring the open-load voltage across OCV cell 308 when no load is applied to that cell. The SOC is then determined from an OCV vs. SOC correlation plot similar to the plot discussed above in FIG. 2 c. The zero-load OCV measurement method, however, requires extra cells and plumbing, in addition to a more complex system integration. Also, measuring the OCV with this method is prone to error in flow battery systems, because the electrolytes experience a shunt current that modifies the observed voltages.

FIG. 4 a illustrates a battery system 400 a during a discharging stage consistent with some embodiments of the present invention. Battery system 400 a includes a battery 402 electrically coupled in series with a current sensor 408. As shown in FIG. 4 a, in discharge mode battery system 400 a is electrically coupled to an external load resistance 412. Battery 402 is modeled by an internal equivalent series resistance (ESR) 406 electrically coupled in series with an open-circuit voltage (OCV) supply 404.

FIGS. 4 d and 4 e illustrate flow charts 450 and 452, each of which depicts a method for determining the state of charge (SOC) of a battery according to some embodiments of the present invention. The methods depicted in FIGS. 4 d and 4 e may be performed by software (e.g., code, program, and instructions) executed by a processor, in hardware, or combinations thereof. The software may be stored on a computer-readable storage medium. The methods depicted in FIGS. 4 d and 4 e are not intended to limit the scope of the invention as recited in the claims.

As depicted in FIGS. 4 d and 4 e, when the battery is charging or discharging (Step 454), current flow and the battery terminal voltage are measured (Steps 460, 470, and 480). Referring back to FIG. 4 a, a voltage across positive and negative terminals 403 and 405, respectively, is a terminal voltage (V_(cell)) 407. A voltage sensor 414 is electrically coupled in parallel to a battery 402 across terminals 403 and 405 to measure the terminal voltage (V_(cell)) 407. During the discharging process, a discharge current (I_(dis)) 410 flows from the battery 402 to an external load resistance 412. The discharge current (I_(dis)) 410 is measured by a current sensor 408. Applying Kirchhoff's Voltage Law results in the following equation for the terminal voltage (V_(cell)) 407:

Vcell=OCV−I _(dis)*ESR   (3)

In some embodiments, the current sensor 408 and voltage sensor 414 may be electrically coupled to a microprocessor or a computer system (not shown in figure) and may be configured by the microprocessor or computer system (not shown in figure) to take a plurality of current and voltage measurements, at either regular or random time intervals, as is shown for example in Table 1.

TABLE 1 Time t₁ t₂ . . . t_(n) Terminal Voltage V_(cell) _(—) ₁ V_(cell) _(—) ₂ . . . V_(cell) _(—) _(n) Current I_(dis) _(—) ₁ I_(dis) _(—) ₂ . . . I_(dis) _(—) _(n)

FIG. 4 b illustrates battery system 400 b during a charging stage consistent with some embodiments of the present invention. Battery system 400 b includes battery 402 electrically coupled in series with current sensor 408 with voltage sensor 414 electrically coupled across terminals 403 and 405 of battery 402. As shown in FIG. 4 b, battery system 400 b is electrically coupled across an external charge voltage (charger) 416. The voltage across the positive and negative terminals 403 and 405, respectively, is the terminal voltage (V_(cell)) 407, which is measured by voltage sensor 414. During the charging process, the charge current (I_(chg)) 415, which is measured by current sensor 408, flows from charger 416 to battery 402. Applying Kirchhoff's Voltage Law results in the following equation for the terminal voltage (V_(cell)) 407:

V _(cell)=OCV+I _(chg)*ESR   (4)

As described above, current sensor 408 and voltage sensor 414 may be electrically coupled to microprocessor or a computer system (not shown in figure) to take a plurality of current and voltage measurements, at either regular or random time intervals, as shown for example in Table 2.

TABLE 2 Time t₁ t₂ . . . t_(n) Terminal Voltage V_(cell) _(—) ₁ V_(cell) _(—) ₂ . . . V_(cell) _(—) _(n) Current I_(chg) _(—) ₁ I_(chg) _(—) ₂ . . . I_(chg) _(—) _(n)

As depicted in FIGS. 4 d and 4 e, the current and voltage measurements are fit to a line (Steps 462 and 472). FIG. 4 c illustrates a plot 424 of the voltage and current measurements taken by voltage sensor 414 and current sensor 408 during the charging and discharging stages. As shown in FIG. 4 c, voltage is plotted along a vertical axis and current along a horizontal axis. For a time t_(n), the voltage and current measured are plotted in the plot 424. Those of ordinary skill in the art will appreciate that alternative embodiments, for example plotting voltage along a horizontal axis and current along a vertical axis, are possible. During the discharging stage, a linear equation for line 420 may be obtained by interpolating the voltage and current measurements (Step 472) taken during the discharging stage (Table 1). Various linear interpolation and linear regression techniques may be employed to obtain the equation of the line 420. Linear interpolation and linear regression techniques include, for example, ordinary least squares, generalized least squares, least absolute deviations, and the like. Similarly, during the charging stage, a linear equation for line 422 may be obtained by interpolating the voltage and current measurements (Step 462) taken during the charging stage (Table 2). In a current-voltage (I-V) graph as shown in FIG. 4 c, the slope of the lines 420, 422 is the ESR while the y-intercept (on the voltage axis) is the OCV of the system at the current SOC.

FIG. 5 illustrates a block diagram of a processor 500 that computes the OCV, SOC, and ESR of a battery based on measurements of the terminal voltage (V_(cell)) 407 and current I_(dis) 410 and I_(chg) 415. In the embodiment shown in FIG. 5, microprocessor 500 includes analog to digital converters (ADC) 502 and 508. ADC 502 is electrically coupled to voltage sensor 414 (FIGS. 4 a and 4 b) to receive measurements of the terminal voltage (V_(cell)) 407 at terminal 512. ADC 502 provides a digitized terminal voltage measurement 503 to an interpolator equation calculator (IEC) 504. ADC 508 is electrically coupled to current sensor 408 (FIG. 4 a) to receive current measurements of Idis 410 or I_(chg) 415 at terminal 518. ADC 508 provides digitized current measurement values 507 to IEC 504. IEC 504 is electrically coupled to a memory 505 by input/output (I/O) bus 516. In some embodiments, memory 505 is internal memory (i.e., on the same die as the microprocessor) or external memory. In some embodiments, IEC 504 may have an output 514 for providing a calculated ESR value, an OCV value, or other parameters to a user. In various embodiments, the ESR determined while the battery is charging is used for calculations while the battery is discharging (Steps 466 and 482).

During a charging or a discharging stage, IEC 504 stores in memory 505 the plurality of digitized voltage and current measurements 503 and 507, respectively. During a discharging stage, IEC interpolates the plurality of voltage and current measurements (from Table 1) to obtain the equation of line 420 (FIG. 4 c). In some embodiments, line 420 is of the form:

V _(cell)=OCV−I _(dis)*ESR   (5)

IEC 504 calculates the slope and intercept of line 422 described by equation (5) and calculates the ESR and OCV. For example, utilizing measurements at time t₁ and t₂:

V _(cell) _(—) ₁=OCV−I _(dis) _(—) ₁*ESR   (6)

measured at time t₁, and

V _(cell) _(—) ₂=OCV−I _(dis) _(—) ₂*ESR   (7)

measured at time t₂. Solving equations (5) and (6) for OCV and ESR yields:

$\begin{matrix} {{OCV} = \frac{{V_{{{cell}\_}1}*I_{{{dis}\_}2}} - {V_{{{cell}\_}2}*I_{{{dis}\_}1}}}{I_{{{dis}\_}2} - I_{{{dis}\_}1}}} & (8) \\ {{ESR} = \frac{V_{{{cell}\_}1} - V_{{{cell}\_}2}}{I_{{{dis}\_}2} - I_{{{dis}\_}1}}} & (9) \end{matrix}$

Hence, two pairs of measured data points V_(cell) and I_(dis) from Table 1 provide a calculated value for OCV and ESR. Processor 504 can then average over the entirety of the data in order to determine best estimates for the parameters OCV and ESR. A line-fitting routine can be utilized to fit a line to the terminal voltage vs. current data (Step 472) shown in Table 1.

IEC 504 determines the SOC from the calculated OCV values, for example by utilizing look-up table 506 that is stored in memory 505 (Steps 478 and 488). Lookup table 506 contains information capable of determining the SOC of the battery from its stored OCV values by interpolating from the calculated OCV value. In some embodiments, lookup table 506 may contain pre-defined OCV and SOC values developed from laboratory measurements under controlled conditions typical of the battery chemistry. The SOC of the battery corresponding to the calculated OCV value determined from lookup table 506 is then provided as an output through output bus 520 (Steps 479 and 489). Output bus 520 can include a data bus, serial link, display, printer, and the like.

A similar calculation of OCV and ESR can be performed during the charging state (Steps 462-464). During a charging stage, IEC 504 interpolates the plurality of voltage and current measurements from table 2 to obtain the equation of line 422 (FIG. 4 c). From Equation 4, line 422 may be of the form:

V _(cell)=OCV+I _(chg)*ESR   (10)

IEC 504 calculates the slope and intercept of line 422 described by Equation (10) and calculates the ESR and OCV. For example, utilizing measurements at time t₁ and t₂:

V _(cell) _(—) ₁=OCV+I _(chg) _(—) ₁*ESR, and   (11)

V _(cell) _(—) ₂=OCV+I _(chg) _(—) ₂*ESR.   (12)

Solving equations 11 and 12 yields

$\begin{matrix} {{OCV} = \frac{{V_{{{cell}\_}1}*I_{{{chg}\_}2}} - {V_{{{cell}\_}2}*I_{{{chg}\_}1}}}{I_{{{chg}\_}2} - I_{{{chg}\_}1}}} & (13) \\ {{ESR} = \frac{V_{{{cell}\_}1} - V_{{{cell}\_}2}}{I_{{{chg}\_}1} - I_{{{chg}\_}2}}} & (14) \end{matrix}$

Utilizing all or part of the data in Table 2 in a line-fitting routine provides statistical averages for the calculated values of OCV and ESR based on the terminal voltage and current data.

IEC 504 utilizes lookup table 506 stored in memory 505 to obtain values of SOC from the determined values of OCV (Step 468). The SOC of the battery corresponding to the calculated OCV value is determined from lookup table 506 and is provided as an output by output means 520 (Step 469).

During both charge and discharge of the battery, sets of voltage and current values can be determined that are within a time frame where the SOC is not appreciably varied. In some embodiments of the present invention, a linear equation is extrapolated from a set of voltage and current values, a set comprising more than two pairs of voltage and current data points and having differing current values. As discussed above, in some embodiments of the present invention the OCV can be determined by the intercept on the voltage axis while a value of ESR can be determined from the slope of the extrapolation line. The SOC can then be determined based upon the OCV.

During battery charging, the system 400 a is under the control of charging electronics and the charging current may be changed in order to observe the cell voltage. The charging current may be perturbed a few such times within a time frame during which the SOC does not significantly change in order to get a set of I_(chg) and V_(chg) points. Battery charging is further discussed in U.S. patent application Ser. No. 12/074,110, entitled “Battery Charger,” which is herein incorporated by reference in its entirety. As discussed above in various embodiments of the present invention, the OCV can be determined based on a linear extrapolation of the I_(chg) and V_(chg) measurements, and the SOC is determined from the OCV. In some embodiments, the SOC is determined from the OCV using a lookup table.

During battery discharge, a practical load usually varies. Therefore, cell voltage (V_(dis)) can be measured with varying current values as a result of the load variation. Again in some embodiments, the OCV and the SOC can be calculated based upon the linear extrapolation from the current and voltage values, as described above.

For some embodiments of the present invention where charging is controllable, one may measure the SOC in such manner during a charging process as described above and the ESR of the cell determined in addition to the OCV. ESR is the slope of the fitted current-voltage line 422. The same ESR may be used for the discharge process (Steps 466 and 482) and an OCV can be determined based on a single data point and without any fitting, by utilizing a rearranged version of equation (3) (Steps 484-488):

OCV=V _(dis) +I _(dis)*ESR   (15)

Such an approximate method is very powerful for determining the SOC during discharge when the battery has a fairly constant load.

This SOC determination using the current-voltage (I-V) line slope-intercept method is applicable at least to general battery systems where kinetic and transport polarizations are minimal or predictable. Kinetic polarization is seen as the non-linear behavior of the I-V curve at low currents. Transport polarization is seen as the non-linear behavior at high currents. Flow batteries consistent with some embodiments of the present invention have minimal kinetic and transport polarization and therefore have linear and predictable I-V relationships.

For most well-designed flow battery systems, the charge and discharge ESRs are the same or similar. A well-designed flow battery system includes fast, reversible reactions and sufficient flow to the battery stack. Hence, the ESR calculated for the charging process can be used during discharging and vice-versa. However, experimentally and empirically, any deviations can be measured for a given flow battery and ESRs may be calibrated if necessary.

Other embodiments will be apparent to those skilled in the art from consideration of the specification and practice disclosed herein. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims. 

1. A method of determining a state of a battery, comprising: measuring a terminal voltage across the battery and a current flowing through the battery at a plurality of different times to obtain terminal voltage and current data; fitting a line equation with a slope and an intercept to the terminal voltage and current data; and calculating from the intercept of the linear equation the open-circuit voltage (OCV) of the battery.
 2. The method of claim 1, further including: determining the state-of-charge (SOC) of the battery from the OCV.
 3. The method of claim 2, wherein determining the SOC includes: referencing a look-up table based on the OCV.
 4. The method of claim 1, wherein the battery is a flow battery.
 5. The method of claim 1, wherein measuring the terminal voltage and the current includes: altering a charging current while charging the battery; and measuring the terminal voltage at the charging current.
 6. The method of claim 1, wherein measuring the terminal voltage and the current includes: measuring the terminal voltage as a load current varies during discharge.
 7. The method of claim 5, further including: determining an equivalent series resistance (ESR) from the slope; and utilizing the ESR during discharge to determine the OCV from a single measurement of the terminal voltage at a discharge current.
 8. A method for calculating the state of charge (SOC) of a battery, comprising the steps of: measuring a terminal voltage across the battery and a current flowing through the battery system at a plurality of different times; determining a linear equation that describes a relationship between the terminal voltage and the current; calculating the open-circuit voltage (OCV) from the linear equation; and determining the SOC of the battery using the calculated OCV.
 9. The method of claim 8 wherein the state-of-charge of the battery is determined from the OCV by reference to a look-up table.
 10. The method of claim 9, further including: calculating an equivalent series resistance for the battery from the slope of the linear equation.
 11. The method of claim 1, wherein measuring the terminal voltage and the current includes: varying a charging current during charging; and determining the terminal voltage for each of the current at the charging current.
 12. The method of claim 11, further including: calculating an equivalent series resistance (ESR) from the slope.
 13. The method of claim 12, further including: determining the OCV based on a single measurement of terminal voltage and discharge current.
 14. An apparatus for determining a state of charge (SOC) of a battery, comprising: a current sensor electrically coupled to determine a current value related to a current through the battery at a plurality of times; a voltage sensor electrically coupled to determine a terminal voltage value related to a terminal voltage across the battery at the plurality of times; a first analog to digital converter (ADC) electrically coupled to the voltage sensor to receive the terminal voltage value and to provide a digitized voltage value; a second analog to digital converter (ADC) electrically coupled to the current sensor to receive the current value and provide a digitized current value; and an interpolator equation calculator (IEC) electrically coupled to the first ADC and to the second ADC to receive the digitized voltage value and the digitized current value for each of the plurality of times, the IEC determining a line equation that best fits the digitized voltage value and digitized current value at the plurality of times.
 15. The apparatus of claim 14, further including: a memory where the IEC stores the digitized voltage value and the digitized current value for each of the plurality of times.
 16. The apparatus of claim 15, wherein the IEC determines an open-circuit voltage for the battery based on an intercept of the line equation.
 17. The apparatus of claim 16, further including: a stored look-up table and wherein the IEC determines the open-circuit voltage by interpolating from the stored look-up table.
 18. The apparatus of claim 14, wherein the IEC determines the equivalent resistance of the battery from a slope of the line equation.
 19. The apparatus of claim 14, wherein a single ADC may be used to digitize both, voltage and current measurements.
 20. The apparatus of claim 14 wherein the battery may be a flow battery. 